package cate.game.role.pvp.jungle.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBJungle;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "丛林冒险-查看状态 请求")
public class JungleViewChangeReq implements MsgInput {
    @NoteField("是否查看中")
    public boolean viewing;

    @Override
    public MsgConfig conf() {
        return MsgIdBJungle.VIEW_CHANGE;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getPvp().jungle.viewMain(viewing);
    }
}
